#pragma once

#include <qlistview.h>
#include<qstandarditemmodel.h>
#include"MusicListDelegate.h"
#include"Song.h"
#include<qlist.h>
class SongListView  : public QListView
{
	Q_OBJECT
private:
	QStandardItemModel* m_model;
	MusicListDelegate* m_delegate;
public:
	SongListView(QWidget* parent = nullptr);
	~SongListView();
	void appendSong(const Song& s , int index = 1);
	//void appendSong(const QList<Song>& list, int index = 1);
};

